﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;
namespace HomeStayWebCP.Models.BusinessObject
{

    public partial class HouseObject
    {
        public HouseObject()
        {
            this.Posts = new HashSet<PostObject>();
        }

        public int HouseID { get; set; }
        public int TypeOfHouseID { get; set; }
        public Nullable<int> HomeStayTypeID { get; set; }
        [Required(ErrorMessage = "Require")]
        public double Area { get; set; }
        public int ProvinceID { get; set; }
        public int DistrictID { get; set; }
        [Required(ErrorMessage = "Address is required")]
        [StringLength(100, ErrorMessage = "Address must be under 100 characters")]
        public string AddressDetail { get; set; }
       [RegularExpression(@"[-+]?[0-9]*\.?[0-9]?[0-9]", ErrorMessage = "Price must be a number")]
        public decimal PricePerDay { get; set; }
       [RegularExpression(@"[-+]?[0-9]*\.?[0-9]?[0-9]", ErrorMessage = "Price must be a number")]
        public decimal PricePerWeek { get; set; }
       [RegularExpression(@"[-+]?[0-9]*\.?[0-9]?[0-9]", ErrorMessage = "Price must be a number")]
        public decimal PricePerMonth { get; set; }
        
        public int NumSittingRoom { get; set; }
       
        public int NumBadroom { get; set; }
      
        public int Storey { get; set; }
     
        public int NumOfWC { get; set; }
        public bool HasGara { get; set; }
        public bool HasGarden { get; set; }
        public bool HasKitchen { get; set; }
        public string Ordinate { get; set; }

        public virtual ICollection<PostObject> Posts { get; set; }

        }

}